package com.cmz.service.impl;

import com.cmz.entity.OnlyAloneUser;
import com.cmz.mybatis.UserMapper;
import com.cmz.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<OnlyAloneUser> queryTotalList(String userName) {
        List<OnlyAloneUser> onlyAloneUsers = userMapper.qryUserList(userName);
        return onlyAloneUsers;
    }
}
